package com.novunda.platform.security;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 用户登陆token
 *
 * @author Lizy
 * @since 2016/9/21
 */
public class NovUsernamePasswordToken extends UsernamePasswordToken {

    private LoginTypeEnum loginType;

    public LoginTypeEnum getLoginType() {
        return loginType;
    }

    public NovUsernamePasswordToken(String username, char[] password, String host, LoginTypeEnum loginType) {
        super(username, password, host);
        this.loginType = loginType;
    }

    public NovUsernamePasswordToken(String username, char[] password, boolean rememberMe, String host, LoginTypeEnum loginType) {
        super(username, password, rememberMe, host);
        this.loginType = loginType;
    }

}
